<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$id=isset($_GET["id"])?$_GET["id"]:"0";
if($id!="0"){
    $dict=$T->db->query("SELECT * FROM sys_grade where id=".$id)->fetch(PDO::FETCH_ASSOC);
    $T->Set("grade_name",$dict["grade_name"]);
    $T->Set("odx",$dict["odx"]);
    $T->Set("sid",$dict["xid"]);
    $T->Set("id",$dict["id"]);
}else{
    $T->Set("sid","");
}

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 